.chat-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
  z-index: 1000;
  margin: 0 16px 0 16px;
  transform: translateY(100%);
  opacity: 0;
}

.chat-panel.visible {
  transform: translateY(0);
  opacity: 1;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom scrollbar for messages */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Message styles */
.message {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  line-height: 1.4;
}

.message.system {
  background: rgba(59, 130, 246, 0.2);
  font-style: italic;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.player-name {
  font-weight: 600;
  color: white;
}

/* Mobile styles */
@media (max-width: 768px) {
  .chat-panel {
    width: 100%;
    height: 60vh;
    margin: 0;
    border-radius: 12px 12px 0 0;
  }
  
  .messages-container {
    padding: 12px;
  }
}

/* Bubble styles */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble .unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
} 